package com.questionnaires.repository;

import com.questionnaires.exception.NotExistsException;
import com.questionnaires.model.Question;

import java.util.List;

/**
 * Interface for the repository that handles question operations.
 *
 * @author ioana.ruca@gmail.com
 */
public interface QuestionRepository {

    void saveOrUpdate(Question question);

    void delete(long id) throws NotExistsException;

    List<Question> findAllByQuestionnaire(long questionnaireId);

    Question findById(long id);
}
